package com.freak.freakmusic.net.status

/**
 *
 * 网络类型
 * @author freak
 * @date 2019/9/11.
 */
enum class NetworkType private constructor(private val desc: String) {
    /**
     * WiFi
     */
    NETWORK_WIFI("WiFi"),
    /**
     * 4G
     */
    NETWORK_4G("4G"),
    /**
     * 3G
     */
    NETWORK_3G("3G"),
    /**
     * 2G
     */
    NETWORK_2G("2G"),
    /**
     * Unknown
     */
    NETWORK_UNKNOWN("Unknown"),
    /**
     * No network
     */
    NETWORK_NO("No network");

    override fun toString(): String {
        return desc
    }
}
